#*-*coding=utf-8*-
#file stp-regexp
#Contains STP regular expression logic

import re


class Replacer(object):
    '''
        Abstract class that process replacement in a str. 
    '''
    def __init__(self, str):
        '''
        Constructor of the class Replacer
        '''
        self.str = str ;
        pass
    def replace(self,expsrc,exptarget):
        '''
        Replaces all occurence of expsrc by exptarget where expsrc and exptarget are regexp 
        '''
        replaced=""
        
        pass

if __name__ == "__main__":
    content = open("../test/test.tpl","r").read()
    #'<script src="../script/{js-script-name:sise}-handler.js" type="text/javascript" ></script>'
    print re.findall(r"\{(.+)\}","{js-script-name}")
    